package com.badou.platform.util;

import java.io.File;

import org.apache.commons.lang3.StringUtils;

import com.alibaba.fastjson.JSONObject;
import com.badou.brms.attach.model.Attach;
import com.badou.core.factory.InstanceFactory;
import com.badou.platform.PlatformConst;
import com.badou.platform.model.ResourceOperEntity;
import com.badou.platform.service.IResourceOperService;
import org.apache.log4j.Logger;

public class DownloadModuleZipFactoryThread implements Runnable{

	protected static Logger logger = Logger.getLogger(DownloadModuleZipFactoryThread.class);

	ResourceOperEntity oper;
	
	public DownloadModuleZipFactoryThread(ResourceOperEntity oper){
		this.oper = oper;
	}
	@Override
	public void run() {
		try {
			DownloadModuleZipFactory.getInstance().downloadFile(oper);
		} catch (Exception e) {
			logger.error(e);
		}
	}
}
